#include <iostream>
#include <gtest/gtest.h>

/*
    断言宏的使用：
    ASSERT_断言失败就退出
    EXPECT_断言失败继续运行
*/
TEST(test,lower_than)
{
    int age=20;
    EXPECT_LT(age,18);
    printf("OK\n");
}

TEST(test,greater_than)
{
    int age=20;
    EXPECT_GT(age,18);
    printf("OK\n");
}

int main(int argc,char*argv[])
{
    testing::InitGoogleTest(&argc,argv);
    RUN_ALL_TESTS();
    return 0;
}